import { request } from '@/utils/request';
import CRUD from '@/utils/request/CRUD';

// 话题互动列表CRUD
export const interactionListCRUD = CRUD('/system/message-interaction');

// 查询所有订单的基本信息
export function getOrderAll(params: Record<string, any>) {
  return request.get({
    url: '/system/order/get-order-all',
    params,
  });
}

// 话题互动回复CRUD
export const interactionCommentsCRUD = CRUD('/system/message-interaction-comments');
// 结束话题
export function endTopic(data: Record<string, any>) {
  return request.post({
    url: '/system/message-interaction/end-topic',
    data,
  });
}
// 新增接收人
export function addReceiver(data: Record<string, any>) {
  return request.post({
    url: '/system/message-interaction/add-receiver',
    data,
  });
}